/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
const SERVICE_STATUS_NAME = {
    'stopped':'stopped',
    'starting':'starting',
    'ready':'ready',
    'failed':'failed'
};

const SERVICE_STATUS_TEXT = {
    stopped:_('已下线'),
    starting:_('启动中'),
    ready:_('已上线'),
    failed:_('已失败')
};

const STREAM_SERVICE_STATUS_NAME = {
    '0':'ready',
    '1':'stopped',
    '2':'failed',
    '3':'starting'
};

const STREAM_SERVICE_STATUS_TEXT = {
    '0':_('已上线'),
    '1':_('已下线'),
    '2':_('已失败'),
    '3':_('启动中')
};

const NEW_FORM_VALUE = {
    readableName: '',
    protocol:1,
    canary:{
        cpuNum:1,
        gpuNum:0,
        memorySize:1,
        minReplicas:1,
        maxReplicas:1,
        image:'',
        imageName:'',
        modelUri:'',
        modelName:'',
        traffic:50,
        subName:'',
        modelId:''
    },
    default:{
        cpuNum:1,
        gpuNum:0,
        memorySize:1,
        minReplicas:1,
        maxReplicas:1,
        image:'',
        imageName:'',
        modelUri:'',
        modelName:'',
        traffic:50,
        subName:'',
        modelId:''
    }
};

export {
    SERVICE_STATUS_NAME,
    SERVICE_STATUS_TEXT,
    NEW_FORM_VALUE,
    STREAM_SERVICE_STATUS_NAME,
    STREAM_SERVICE_STATUS_TEXT
};
